39343ce957c517cd8d532ab9995fef40a58796b6,core/java/test/net/i2p/crypto/HMACSHA256Bench.java,HMACSHA256Bench,main,#String#,37

Before Change


		}
		byte[] lmess = buf.toString().getBytes();
        
        HMACSHA256Generator.Buffer sbuf = ctx.hmac().createBuffer(smess.length);
        HMACSHA256Generator.Buffer mbuf = ctx.hmac().createBuffer(mmess.length);
        HMACSHA256Generator.Buffer lbuf = ctx.hmac().createBuffer(lmess.length);
        
		// warm up the engines
        ctx.hmac().calculate(key, smess, sbuf);
        ctx.hmac().calculate(key, mmess, mbuf);
        ctx.hmac().calculate(key, lmess, lbuf);
        
        long before = System.currentTimeMillis();
        for (int x = 0; x < times; x++)
            ctx.hmac().calculate(key, smess, sbuf);
        long after = System.currentTimeMillis();
        
        display(times, before, after, smess.length, "3 byte");

After Change


		byte[] lmess = buf.toString().getBytes();

		// warm up the engines
        ctx.hmac().calculate(key, smess);
        ctx.hmac().calculate(key, mmess);
        ctx.hmac().calculate(key, lmess);
        
        long before = System.currentTimeMillis();
        for (int x = 0; x < times; x++)
            ctx.hmac().calculate(key, smess);
        long after = System.currentTimeMillis();
        
        display(times, before, after, smess.length, "3 byte");